package com.example.sourceslibs

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import okhttp3.Call
import retrofit2.Retrofit
import retrofit2.http.GET
import javax.inject.Singleton

interface INetApi {

    @GET("http-path")
    fun httpRequest():Call
}



@Module
@InstallIn(SingletonComponent::class)
object NetClientProvider{

    @Provides
    @Singleton
    fun providerHttpClient():INetApi{
        return Retrofit.Builder().build().create(INetApi::class.java)
    }
}